window: Add a new fancy way to compute min size
authorBenjamin Otte <otte@redhat.com>
Sun, 21 Nov 2021 06:06:11 +0000 (07:06 +0100)
committerBenjamin Otte <otte.benjamin@googlemail.com>
Sun, 21 Nov 2021 18:52:42 +0000 (18:52 +0000)
commit0709dc7a6a658cf41de724ec04f7e68a49c04720
tree59dbc42c73da2e1fcecbb1b5c8f58087bdba97d6
parent15528599f4ca68fcce8a2233a376a17fb4433750
window: Add a new fancy way to compute min size

Try to compute a min size that matches the current aspect ratio.

This means that when interactively resizing, we adapt the min size to
the current window area dynamically.

And that means that we always have a min size that is large enough, but
users can interactively cause it to be small-width x large-height,
large-width x small-width or anything inbetween.
gtk/gtkwindow.c